<?php require 'Public/header.php';?>
<body>
<link rel="stylesheet" type="text/css" href="Public/org/home/css/order.css"/>
<link rel="stylesheet" type="text/css" href="<?php echo __VIEW__?>/Order/css.css"/>
	<?php require 'Public/MyVanclTop.php';?>
    
    <!--列表分类-->
    <div class="showSortArea">
    	<div class="showSort">
    		<p class="showSortTitle">
    			你当前的位置：
    			<a href="<?php echo __WEB__?>">凡客首页 > </a>
    			<a href="index.php?m=Home&c=MyVancl&a=index">我的凡客 > </a>
    			<a href="index.php?m=Home&c=MyVancl&a=order">我的订单</a>
    		</p>
    	</div>
    </div>
    <!--列表分类end-->
	
	<!--个人中心内容-->
	<div class="myCenterArea">
		<!--个人中心内容居中框-->
		<div class="myCenterCon">
			<!--左边导航栏-->
			<section class="center-nav">
				<?php require 'Public/MyVanclNav.php';?>
			</section>
			<!--导航栏目end-->
			
			<!--右边内容-->
			<div class="centerContent">
				<div class="myMsg">
					<h3>
						<span class="orderTitle">
							我的订单
						</span>
					</h3>
					<div class="orderBox">
						<p>
							<a href="" class="hover">全部订单(0)</a>
							<a href="">进行中(0)</a>
							<a href="">已完成(0)</a>
							<a href="">无效(0)</a>
						</p>
						<!-- 交易盒子 -->
						<div class="conBox">
							<!-- 无交易时候 -->
							<?php if(!isset($order)):?>
							<section>
								目前您暂无30天内的订单记录，请选择其他时间段查看。
							</section>
							<!-- 无交易时候end -->
							<?php else:?>
							<!-- 有交易时候 -->
							<div class="account">						
								<table border="0" cellspacing="0" cellpadding="0">
								<?php foreach($order as $key => $value):?>
									<tr class="tive" style="border-top: 1px solid #dadada;">
										<th style="width:80px;">订单总金额</th>
										<th style="width:80px;text-align: left;font-weight: bold;">￥<?php echo $value['order_cash']?></th>
										<th style="width:100px;">
											<?php switch ($value['order_status']) {
													case '0':
														echo "订单进行中";
														break;
													
													case '1':
														echo "已完成";
														break;
												}?>
										</th>
										<th colspan="2" style="width:524px;"></th>

									</tr>
									<?php foreach($data[$key] as $v):?>
									<tr>
										<td colspan="5" style="border-top: 1px solid #dadada;">
											<span style="width:130px;line-height: 85px;"><?php echo $v['hd_shop_order_order_sn']?></span>
											<span style="width:300px;vertical-align: middle">							
												<img src="<?php echo $v['thumb_pic']?>" style="width:50px;height:50px;border:1px solid #ccc;margin-top: 20px;float:left;">	
											</span>
											<span style="width:120px;margin-top: 20px;">
												<label style="display:block;width:100%">
												<?php switch ($value['order_status']) {
													case '0':
														echo "订单进行中";
														break;
													
													case '1':
														echo "已完成";
														break;
												}?>
												</label>
												<label style="display:block;width:100%">货到付款</label>
												<label style="display:block;width:100%"><a href="#"><?php echo $value['postname']?></a></label>
											</span>
											<span style="width:120px;margin-top:20px;">
												<label style="display:block;width:100%">
													<?php switch ($value['order_status']) {
													case '0':
														echo "订单进行中";
														break;
													
													case '1':
														echo "已完成";
														break;
												}?>
												</label>
												<label style="display:block;width:100%"><a style="color:blue" href="">生成订单成功</a></label>
											</span>
											<span style="width:100px;color:#000">评论</span>										
										</td>										
									</tr>
									<?php endforeach;?>									
								<?php endforeach;?>
								</table>
							</div>
							<!-- 有交易时候end -->
						<?php endif;?>
						</div>
					</div>
				</div>
				<!--右边推荐-->
				<!-- <div class="tj">
					<p class="title">
						<span>为您推荐</span>
					</p>
					<div>
						<section class="yifu">
							<img src="Public/org/home/images/list/1.jpg"/>
							<p>升级版经典POLO衫（男款）湖蓝色</p>
							<span>
								售价￥79.00
							</span>
						</section>
						<section class="yifu">
							<img src="Public/org/home/images/list/1.jpg"/>
							<p>升级版经典POLO衫（男款）湖蓝色</p>
							<span>
								售价￥79.00
							</span>
						</section>
						<section class="yifu">
							<img src="Public/org/home/images/list/1.jpg"/>
							<p>升级版经典POLO衫（男款）湖蓝色</p>
							<span>
								售价￥79.00
							</span>
						</section>
						<section class="yifu">
							<img src="Public/org/home/images/list/1.jpg"/>
							<p>升级版经典POLO衫（男款）湖蓝色</p>
							<span>
								售价￥79.00
							</span>
						</section>
						<section class="yifu">
							<img src="Public/org/home/images/list/1.jpg"/>
							<p>升级版经典POLO衫（男款）湖蓝色</p>
							<span>
								售价￥79.00
							</span>
						</section>
						<section class="yifu">
							<img src="Public/org/home/images/list/1.jpg"/>
							<p>升级版经典POLO衫（男款）湖蓝色</p>
							<span>
								售价￥79.00
							</span>
						</section>
					</div>
				</div> -->
				<!--右边推荐end-->
			</div>
			<!--右边内容end-->			
		</div>
		<!--个人中心居中框end-->
	</div>
	<!--个人中心内容end-->
	
	<?php require 'Public/MyVanclFooter.php';?>
</body>
</html>
